app.service('chainGoodsManageService',['$http','$q','utilService',function($http,$q,utilService){

    this.changeStatus=function($scope){
        var deferred = $q.defer();
        utilService.api({
            url:$scope.app.domain + 'chain/goods/shop/change',
            data:{id:$scope.chainGoods.id,auditFailDescription:$scope.chainGoods.auditFailDescription},
            method:'PUT'
        }).then(function(response){
            deferred.resolve(response);
        },function(e){
            console.error(e);
            deferred.reject("连接服务器出错！");
        });
        return deferred.promise;
    }

}]);